<?php
/**
 * Created by PhpStorm.
 * User: 小蛮哼哼哼
 * Email: 243194993@qq.com
 * Date: 2021/12/31 0031
 * Time: 14:59
 * motto: 现在的努力是为了小时候吹过的牛逼！
 */

declare(strict_types=1);


namespace app\common\validate;

class Manager extends Base
{
    protected $rule = [
        "openid" => "require",
        "realname" => "require",
        "mobile" => "require|mobile",
        "weixinno" =>'require',
        "title"   =>'require',
        "servicetel" =>'require|number',
        'area'  =>'require',
        "address"=>"require",
        "cat_id" =>'require',
        "company" =>'require',
        'company_tel' =>'require|number',
        'cardimg'   =>'require'
    ];
    protected $message = [
        "openid.require" => "系统内部错误",
        "realname.require" => "请输入联系人",
        "mobile.require" => "请输入手机号",
        "mobile.mobile" => "联系电话请填写正确的手机号",
        "weixinno.require" =>"请输入核销微信号",
        "title.require"   =>"请输入店铺名称",
        "servicetel.require"=>"请输入客服电话",
        "servicetel.number" =>'客服电话只能输入数字',
        "area.require" => "请选择地址",
        "address.require"=>"请输入地址",
        "cat_id.require" =>"请选择所属类目",
        "company.require" =>"请输入公司名称",
        "company_tel.require" =>"请输入公司电话",
        "company_tel.number" =>"公司电话只能输入数字",
        "cardimg.require" =>"请上传资质"
    ];
    protected $scene = [
        "add" => ["openid",  "relname", "mobile","weixinno","title","servicetel","area","address","cat_id","company","company_tel","cardimg"]
    ];
}